
#ifndef WIDGETZHONG_H
#define WIDGETZHONG_H
#include"boxgame.h"
#include <QWidget>



QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget

{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void keyPressEvent(QKeyEvent*event);
    void paintEvent(QPaintEvent*event);
private:
    Ui::Widget *ui;
    QPainter*pMap;
    boxgame*pBox;
};

#endif // WIDGET_H
